<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js"></script>

	</head>

	<body>
		<div ng-app="myapp" ng-controller="myctrl">
			<div>
				<input type="password" name="c" ng-model="a" />
			</div>
			<div>
				hello,{{a}}</br>
				<span ng-bind="a"></span>

			</div>
		</div>
		
		<script type="text/javascript">
			//初始化模块，无依赖
			var myapp = angular.module("myapp", []);
			//定义模块的控制器
			//注入作用域对象
		
			myapp.controller("myctrl", ["$scope",function($scope) {
				$scope.a = "heima";
			}])
		</script>

	</body>

</html>